Apparatus and method for processing data

ABSTRACT

Provided are an apparatus and method for processing data by detecting an event on an interrupt or polling basis according to data transmitting or receiving periods. The apparatus includes a buffer configured to store one or more wireless packets, a period determination unit configured to determine a period of transmitting or receiving the wireless packets, and a data processor configured to process data included in the wireless packets by detecting an event in a polling mode or an interrupt mode according to the period.

CROSS-REFERENCE TO THE RELATED APPLICATION

This application claims priority from Korean Patent Application No.10-2015-0081320 filed on Jun. 9, 2015 in the Korean IntellectualProperty Office, the disclosure of which is incorporated herein in itsentirely by reference.

BACKGROUND

1. Field

Apparatuses and methods consistent with exemplary embodiments related todata processing, and more particularly to data processing by detectingan event on an interrupt or polling basis according to datatransmitting/receiving periods.

2. Description of the Related Art

Events generated in a system may be processed by a central processingunit (CPU) in a polling mode or an interrupt mode.

Events are periodically processed in the polling mode, while eventdetection is asynchronously performed and processed in the interruptmode.

SUMMARY

The exemplary embodiments of the inventive concept provide an apparatusand method for processing data by detecting an event on an interrupt orpolling basis according to a data transmitting/receiving period.

The above and other objects of the inventive concept will be describedin or be apparent from the following description of the exemplaryembodiments.

According to an aspect of an exemplary embodiment, there is provided anapparatus for processing data which may include: a buffer configured tostore one or more wireless packets, a period determination unitconfigured to determine a period of transmitting or receiving thewireless packets, and a data processor configured to process dataincluded in the wireless packets by detecting an event in a polling modeor an interrupt mode according to the period.

According to another aspect of an exemplary embodiment, there isprovided a method for processing data which may include: storing one ormore wireless packets in a buffer; determining a period of transmittingor receiving periods of the wireless packets; and processing dataincluded in the wireless packets by detecting an event in a polling modeor an interrupt mode according to the period.

As described above, in the apparatus and method for processing dataaccording to the exemplary embodiments, data is processed by detectingevents on an interrupt or polling basis according to the datatransmitting/receiving period, thereby preventing data from beingdamaged while preventing unnecessary power consumption.

BRIEF DESCRIPTION OF THE DRAWINGS

The above and other features and aspect of the inventive concept willbecome more apparent by describing in detail exemplary embodimentsthereof with reference to the attached drawings, in which:

FIGS. 1 and 2 are diagrams illustrating a data processing systemaccording to exemplary embodiments;

FIGS. 3 and 4 are conceptual diagrams illustrating procedures ofprocessing wireless packets input to a buffer, according to exemplaryembodiments;

FIG. 5 is a conceptual diagram illustrating an event detection modeselected by a transmitting/receiving period of a wireless packetaccording to an exemplary embodiment;

FIG. 6 is a block diagram of a data processing apparatus according to anexemplary embodiment;

FIG. 7 is a diagram of a wireless packet according to an exemplaryembodiment;

FIG. 8 is a flow diagram of consecutive wireless packets according to anexemplary embodiment; and

FIGS. 9 and 10 are flow diagrams of data processing methods according toexemplary embodiments.

DETAILED DESCRIPTION OF THE EXEMPLARY EMBODIMENTS

Advantages and features of the inventive concept may be understood morereadily by reference to the following detailed description of exemplaryembodiments and the accompanying drawings. The inventive concept may,however, be embodied in many different forms and should not be construedas being limited to the embodiments set forth herein. Rather, theseembodiments are provided so that this disclosure will be thorough andcomplete and will fully convey the inventive concept to those skilled inthe art, and the inventive concept will only be defined by the appendedclaims.

Unless otherwise defined, all terms (including technical and scientificterms) used herein have the same meaning as commonly understood by oneof ordinary skill in the art to which this inventive concept belongs. Itwill be further understood that terms, such as those defined in commonlyused dictionaries, should be interpreted as having a meaning that isconsistent with their meaning in the context of the relevant art and thepresent disclosure, and will not be interpreted in an idealized oroverly formal sense unless expressly so defined herein.

FIGS. 1 and 2 are diagrams illustrating a data processing systemaccording to an exemplary embodiment.

Referring to FIGS. 1 and 2, the data processing system 10 includes apacket transmitting apparatus 110 and a packet receiving apparatus 120.The packet transmitting apparatus 110 may transmit packets and thepacket receiving apparatus 120 may receive the packets transmitted fromthe packet transmitting apparatus 110.

At least one of the packet transmitting apparatus 110 and the packetreceiving apparatus 120 according to the exemplary embodiment maytransmit and receive a packet by a wireless communication method. Forexample, if the packet transmitting apparatus 110 transmits a packet ina wireless manner, the packet receiving apparatus 120 may receive thepacket in a wireless or wired manner. If the packet transmittingapparatus 110 transmits a packet in a wireless or wired manner, thepacket receiving apparatus 120 may receive the packet in a wirelessmanner. Hereinafter, the packet transmitted or received in a wirelessmanner will be referred to as a wireless packet.

As the packet transmitting apparatus 110 and the packet receivingapparatus 120 transmits and receives the wireless packet by a wirelesscommunication method, a network 130 relaying communications between thepacket transmitting apparatus 110 and the packet receiving apparatus 120may support a wireless network. For example, the network 130 may supporta proprietary radio frequency (RF), but the inventive concept is notlimited thereto.

The following description will be made on an assumption that the packettransmitting apparatus 110 and the packet receiving apparatus 120transmits and receives wireless packets by a wireless communicationmethod, respectively, but the inventive concept is not limited thereto.For example, only one of the packet transmitting apparatus 110 and thepacket receiving apparatus 120 transmits or receives wireless packets bythe wireless communication method, and a data processing apparatus 600to be described later (see FIG. 6) may be included in the packettransmitting apparatus 110 or the packet receiving apparatus 120operating by the wireless communication method.

The packet transmitting apparatus 110 and the packet receiving apparatus120 according to an exemplary embodiment may be a low power wirelesscommunication apparatus. Since the packet transmitting apparatus 110 andthe packet receiving apparatus 120 are low power wireless communicationapparatuses, they may wirelessly transmits and receives packets,respectively, while being driven by battery power. In addition, thepacket transmitting apparatus 110 or the packet receiving apparatus 120may include a data processor for processing data included in thewireless packets, and the data processor may be driven with relativelylow power in order to reduce power consumption.

For example, the packet transmitting apparatus 110 may be an apparatusincorporating a camera for transmitting an image photographed by thecamera or an apparatus transmitting images transferred from one or morecameras.

FIG. 2 illustrates that a gateway 111 as the packet transmittingapparatus 110 receives images from a plurality of cameras 200 andtransmits the received images to the packet receiving apparatus 120.

The gateway 111 may perform data processing on the images received fromthe plurality of cameras 200 and transmit the data-processed images tothe packet receiving apparatus 120. For example, the gateway 111 mayencode data of the received images and may constructs the encoded dataas packets for transmission.

As described above, the gateway 111 may be a low power wirelesscommunication apparatus, so that it may encode images and transmit thepackets while consuming a small amount of power.

Likewise, the packet receiving apparatus 120 may also be a low powerwireless communication apparatus. Accordingly, the packet receivingapparatus 120 may receive wireless packets and may decode the dataincluded in the wireless packets while consuming a small amount ofpower.

FIGS. 3 and 4 are conceptual diagrams illustrating procedures ofprocessing wireless packets input to a buffer.

The data processors included in the packet transmitting apparatus 110and the packet receiving apparatus 120 may sequentially process aplurality of wireless packets stored in a buffer included in the dataprocessors.

Referring to FIG. 3, in step S310, the buffer stores wireless packets P1to P4. The wireless packets P1, P2, P3 and P4 may be sequentially storedin the buffer in that order.

In step S320, the data processor performs data processing on thewireless packet P1 firstly input to the buffer. For example, the dataprocessor may check integrity of the wireless packets and may remove aheader to then encode or decode the data.

In step S330, the data processor may remove the processed wirelesspacket from the buffer. As the wireless packet is removed from thebuffer, the buffer may secure a space for recording another wirelesspacket.

In step S340, the buffer inputs a new wireless packet P5 and stores thesame. Since the wireless packet P1 is removed from the buffer, thebuffer may have a sufficient space so that the wireless packet P5 can benormally stored in the buffer.

After completing of the data processing of the wireless packet P1, thedata processor may perform data processing on the wireless packet P2.Such operations of the data processor may be performed until thewireless packets stored in the buffer are completely removed.

Meanwhile, since the data processor of the packet transmitting apparatus110 or the packet receiving apparatus 120, which is a low power wirelesscommunication apparatus, operates with a small amount of power, it maynot be capable of processing data at a high speed. Therefore, the dataprocessor may perform data processing by detecting an event in aninterrupt mode, rather than a polling mode.

In a polling mode, even if there is no data to be processed, eventdetection is periodically performed, consuming a relatively high amountof power. In an interrupt mode, event detection is performed only whendata to be processed is generated, so that a relatively small amount ofpower may be consumed. Therefore, the data processor of the packettransmitting apparatus 110 or the packet receiving apparatus 120performs event detection basically in the interrupt mode.

In the interrupt mode, since an unexpected event is detected, the dataprocessor may need to instantaneously perform many computation stepswhenever event detection is performed. That is to say, as the interruptmode is employed, the wireless packets stored in the buffer may not beproperly processed, which is illustrated in FIG. 4.

Referring to FIG. 4, in step S410, the buffer stores wireless packets P1to P4. The wireless packets P1, P2, P3 and P4 may be sequentially storedin the buffer in that order.

In step S420, the data processor performs data processing on thewireless packet P1 firstly input to the buffer. For example, the dataprocessor may check integrity of the wireless packets and may remove aheader to then encode or decode the data.

Meanwhile, when event detection is performed in an interrupt mode, dataprocessing capability of the data processor is low. Thus, like in stepS430, even if a new wireless packet P5 is ready to be input to thebuffer, the data processor may still perform data processing on thewireless packet P1.

Accordingly, even if the processing of the wireless packet P1 is notcompleted, the new wireless packet P5 is input to the buffer in stepS440. Here, if there is no space for accommodating the wireless packetsP1 to P5 in the buffer, the new wireless packet P5 may be stored in aspace where an existing wireless packet is stored, and the existingwireless packet stored in the buffer may be damaged. FIG. 4 illustratesthat the new wireless packet P5 is stored in a space where the existingwireless packet 4 is stored.

Eventually, the wireless packet 4 may not be normally processed, so thatthe data processed by the data processor may not serve as correctinformation. For example, the wireless packets stored in the buffer maybe wireless packets constituting a motion video stream. As some of thewireless packets are damaged, a screen of the motion video stream may bedamaged in part or in whole.

In order to prevent the data from being damaged, the packet transmittingapparatus 110 or the packet receiving apparatus 120 according to anexemplary embodiment may perform event detection by switching to in apolling mode or an interrupt mode according to thetransmitting/receiving periods of wireless packets.

FIG. 5 is a conceptual diagram illustrating an event detection modeselected by a transmitting/receiving period of a wireless packetaccording to an exemplary embodiment.

The packet transmitting apparatus 110 and the packet receiving apparatus120 may perform event detection by switching to the interrupt mode orthe polling mode according to the transmitting/receiving periods ofwireless packets. That is to say, as shown in FIG. 5, if atransmitting/receiving period (Δt1) of a wireless packet is greater thanor equal to a predetermined critical value, the event detection methodis switched to the interrupt mode, and if a transmitting/receivingperiod (Δt2) of the wireless packet is less than the predeterminedcritical value, the event detection method is switched to the pollingmode.

Since events are detected in the interrupt mode, compared to in thepolling mode, the data processor may perform data processing withrelatively low power. When events are detected in the polling mode,compared to in the interrupt mode, the data processor may perform dataprocessing in relatively high efficiency.

FIG. 6 is a block diagram of a data processing apparatus according to anexemplary embodiment.

The data processing apparatus 600 according to an exemplary embodiment,which is incorporated into the packet transmitting apparatus 110 or thepacket receiving apparatus 120, may transmit or receive wireless packetsand process data included in the wireless packets.

Referring to FIG. 6, the data processing apparatus 600 includes acommunication unit 610, a buffer 620, a data processor 630, a perioddetermination unit 640, an input unit 650, and an output unit 660.

The communication unit 610 may transmit or receive wireless packets.When the data processing apparatus 600 is the packet transmittingapparatus 110, the communication unit 610 transmits wireless packets andwhen the data processing apparatus 600 is the packet receiving apparatus120, the communication unit 610 may receive wireless packets.

The buffer 620 may store one or more wireless packets. The wirelesspackets received by the communication unit 610 or the wireless packetsto be transmitted by the communication unit 610 may be temporarilystored in the buffer 620.

The period determination unit 640 may determine transmitting/receivingperiods of the one or more wireless packets stored in the buffer 620.That is to say, the period determination unit 640 may determine whetherthe transmitting/receiving periods of the one or more wireless packetsis less than or greater than or equal to a predetermined critical value.

The period determination unit 640 may determine thetransmitting/receiving periods of the one or more wireless packets byreferring to transmitting/receiving period information included in awireless packet. The wireless packet may include transmitting/receivingperiod information about time intervals between the wireless packet andwireless packets to be subsequently transmitted or received. The perioddetermination unit 640 may determine the transmitting/receiving periodsof the one or more wireless packets by referring to thetransmitting/receiving period information included in the wirelesspacket. The period determination unit 640 may determine an actualtransmitting/receiving period or a relationship between thetransmitting/receiving period and the critical value by referring to thetransmitting/receiving period information included in the wirelesspacket.

In addition, the period determination unit 640 may determine thetransmitting/receiving periods of the one or more wireless packets bymeasuring time intervals of the wireless packets continuouslytransmitted or received. For example, the period determination unit 640may determine the transmitting/receiving periods based on an intervalbetween a transmitting time of one wireless packet and a transmittingtime of another wireless packet. The transmitting/receiving periods maybe determined by referring to a mean value of multiple time intervals.The mean value is obtained by collecting the multiple time intervals ofwireless packets and calculating the mean value of the multiple timeintervals.

The data processor 630 detects an event in a polling mode or aninterrupt mode according to the transmitting/receiving periodsdetermined by the period determination unit 640, and may process dataincluded in the one or more wireless packets stored in the buffer 620.Here, if the transmitting/receiving periods are less than a criticalvalue, the data processor 630 switches to the polling mode for eventdetection, and if the transmitting/receiving periods are greater than orequal to the critical value, the data processor 630 switches to theinterrupt mode for event detection.

In order to reduce power consumption, event detection may be basicallyperformed in the interrupt mode. That is to say, unless it is determinedthat the transmitting/receiving periods are less than the criticalvalue, the data processor 630 performs event detection in the interruptmode.

As described above, in order to reduce power consumption, the dataprocessor 630 may make an attempt to switch to the interrupt mode. Forexample, in a state in which event detection is performed in the pollingmode, if the transmitting/receiving periods greater than or equal to thecritical value lasts for a predetermined time, the data processor 630may switch the event detection method to the interrupt mode.

Meanwhile, in order to improve data processing efficiency, if it isdetermined that the transmitting/receiving periods are less than thecritical value, the data processor 630 may immediately switch the eventdetection method to the polling mode.

The data processor 630 may process the data included in the wirelesspacket corresponding to a detected event, among the one or more wirelesspackets stored in the buffer 620, and may remove the data-processedwireless packet from the buffer 620. As the data-processed wirelesspacket is removed from the buffer 620, the buffer 620 may secure a spacefor storing a new packet.

The operation of the data processor 630 according to the exemplaryembodiment may be performed by a central processor (CPU), and the CPUmay be the data processor 630.

The input unit 650 may receive data for constructing packets as itsinput. For example, the input unit 650 may receive data of an imagephotographed by a camera (not shown). The camera (not shown) mayincorporate or may be incorporated into the data processing apparatus600, or may be implemented as a separate device.

The data input through the input unit 650 is constructed as packets bythe data processor 630 to then be transmitted by the communication unit610. When the data processing apparatus 600 is the packet receivingapparatus 120, the input unit 650 receiving data of an image may not benecessarily provided.

The output unit 660 may output the data transmitted from the dataprocessor 630. For example, the output unit 660 may reproduce video dataor audio data or may transfer the data to an apparatus capable ofreproducing the data. When the data processing apparatus 600 is thepacket transmitting apparatus 110, the output unit 660 reproducing videodata or audio data may not be necessarily provided.

FIG. 7 is a diagram of a wireless packet according to an exemplaryembodiment.

Referring to FIG. 7, a wireless packet 700 includes a header 710 and apayload 720. The header 710 includes a length field 711, a source field712, a destination field 713, a transfer type field 714, and othercontrol information field 715, and the payload 720 includes a data field721 and an integrity check or cyclic redundancy check (CRC) field 722.

The length field 711 includes information about an overall length of thewireless packet 700, the source field 712 includes information about anetwork address of an apparatus for transmitting the wireless packet700, and the destination field 713 includes information about a networkaddress of an apparatus for receiving the wireless packet 700.

The transfer type field 714 includes transmitting/receiving periodinformation as a transfer type of the wireless packet 700. According toan exemplary embodiment, the transmitting/receiving period informationmay be an actual transmitting/receiving period of the wireless packet700 or a relationship between the transmitting/receiving period and acritical value. For example, when the transmitting/receiving periods areless than the critical value, the transmitting/receiving periodinformation includes a flag representing a fast transfer type. When thetransmitting/receiving periods are greater than or equal to the criticalvalue, the transmitting/receiving period information includes a flagrepresenting a slow transfer type.

The period determination unit 640 of the data processing apparatus 600may determine the transmitting/receiving periods by referring to thetransmitting/receiving period information included in the transfer typefield 714. That is to say, the period determination unit 640 maydetermine the actual transmitting/receiving period or the relationshipbetween the transmitting/receiving period and the critical value.

The other control information field 715 includes separate additionalinformation about the wireless packet 700 or additional informationintended to be transmitted by the packet transmitting apparatus 110.When transmission of additional information is not necessary, noinformation may be included in the other control information field 715.

The data field 721 includes data intended to be transmitted to thepacket receiving apparatus 120 by the packet transmitting apparatus 110.For example, the data field 721 may include video data of an imagephotographed by a camera. The data processor 630 of the data processingapparatus 600 may perform data processing by extracting the dataincluded in the data field 721.

The integrity check field 722 includes integrity check information. CRCvalues may be included in the integrity check field 722 as the integritycheck information. The packet receiving apparatus 120 may check whetherthe wireless packet 700 has an error or not, by referring to theintegrity check information. Meanwhile, the integrity check field 722may also include parity bits, check digits, Hamming codes or frame checksequences as the integrity check information.

FIG. 8 is a flow diagram of consecutive wireless packets according to anexemplary embodiment.

When data to be transmitted by the packet transmitting apparatus 110 istoo big to be included in one wireless packet, the data is separatedinto multiple pieces and then transmitted in a state in which themultiple pieces of data are included in a plurality of wireless packets,respectively. Here, the respective wireless packets may have datasequence numbers, which may be included in the payload 720.

FIG. 8 illustrates that sequence numbers S1 to S4 are included inpayloads 720 of the wireless packets.

When the sequence numbers S1 to S4 are referred to as being included inthe payloads 720 of the wireless packets, the wireless packets aretransmitted and received at relatively short time intervals, and theperiod determination unit 640 of the packet receiving apparatus 120 mayuse the sequence numbers S1 to S4 as the transmitting/receiving periodinformation. That is to say, when the sequence numbers S1 to S4 are notincluded in the payloads 720 of the wireless packets, the perioddetermination unit 640 determines that the transmitting/receivingperiods are greater than or equal to the critical value, and when thesequence numbers S1 to S4 are included in the payloads 720 of thewireless packets, the period determination unit 640 determines that thetransmitting/receiving periods are less than the critical value.

Eventually, the period determination unit 640 determines thetransmitting/receiving periods from the transmitting/receiving periodinformation included in the headers 710 of wireless packets or thesequence numbers S1 to S4 included in the headers 710.

While it has been described that the period determination unit 640 ofthe packet receiving apparatus 120 determines the transmitting/receivingperiods by referring to the sequence numbers S1 to S4 included in thepayloads 720, the period determination unit 640 of the packettransmitting apparatus 110 may also determine the transmitting/receivingperiods by referring to the sequence numbers S1 to S4 included in thepayloads 720. For example, when data to be transmitted is input throughthe input unit 650, the sequence numbers S1 to S4 may be input togetherwith the data, or the data including the sequence numbers S1 to S4 maybe input.

FIGS. 9 and 10 are flow diagrams of data processing methods according toexemplary embodiments. Specifically, FIG. 9 is a flow diagramillustrating a data processing procedure by a packet receiving apparatus120 and FIG. 10 is a flow diagram illustrating a data processingprocedure by a packet transmitting apparatus 110.

Referring to FIG. 9, the communication unit 610 receives a wirelesspacket (S910). As the wireless packet is received, the perioddetermination unit 640 determines a transmitting/receiving period of thewireless packet (S920). In order to determine the receiving period, theperiod determination unit 640 may refer to transmitting/receiving periodinformation included in the header 710 of the wireless packet or thesequence number included in the payload 720.

Alternatively, the period determination unit 640 may determine thereceiving period by referring to time intervals of continuously receivedwireless packets.

When it is determined by the period determination unit 640 that thereceiving period is less than a critical value, the data processor 630switches an event detection method to a polling mode (S930), and when itis determined by the period determination unit 640 that the receivingperiod is greater than or equal to the critical value, the dataprocessor 630 switches the event detection method to an interrupt mode(S940).

The data processor 630 performs data processing according to theswitched event detection method while performing event detection (S950).

Referring to FIG. 10, the input unit 650 receives data for constructingpackets (S1010). As the data is received as input, the perioddetermination unit 640 determines a transmitting/receiving period of thewireless packet (S1020). In order to determine the transmitting period,the period determination unit 640 may refer to the time intervals ofinputting data, or sequence numbers.

When it is determined by the period determination unit 640 that thetransmitting period is less than a critical value, the data processor630 switches an event detection method to a polling mode (S1030), andwhen it is determined by the period determination unit 640 that thetransmitting period is greater than or equal to the critical value, thedata processor 630 switches the event detection method to an interruptmode (S1040).

The data processor 630 performs data processing according to theswitched event detection method while performing event detection(S1050), and generates the wireless packet. The generated wirelesspacket is transmitted through the communication unit 610 (S1060).

As described above, since the event detection method is switched to thepolling mode or the interrupt mode according to thetransmitting/receiving period of wireless packets, data processingefficiency can be improved while reducing power consumption.

The operations or steps of the methods or algorithms described above canbe embodied as computer readable codes on a computer readable recordingmedium, or to be transmitted through a transmission medium. The computerreadable recording medium is any data storage device that can store datawhich can be thereafter read by a computer system. Examples of thecomputer readable recording medium include read-only memory (ROM),random-access memory (RAM), compact disc (CD)-ROM, digital versatiledisc (DVD), magnetic tape, floppy disk, and optical data storage device,not being limited thereto. The transmission medium can include carrierwaves transmitted through the Internet or various types of communicationchannel. The computer readable recording medium can also be distributedover network coupled computer systems so that the computer readable codeis stored and executed in a distributed fashion.

At least one of the components, elements, modules or units representedby a block as illustrated in FIGS. 1, 2 and 6 may be embodied as variousnumbers of hardware, software and/or firmware structures that executerespective functions described above, according to an exemplaryembodiment. For example, at least one of these components, elements,modules or units may use a direct circuit structure, such as a memory, aprocessor, a logic circuit, a look-up table, etc. that may execute therespective functions through controls of one or more microprocessors orother control apparatuses. Also, at least one of these components,elements, modules or units may be specifically embodied by a module, aprogram, or a part of code, which contains one or more executableinstructions for performing specified logic functions, and executed byone or more microprocessors or other control apparatuses. Also, at leastone of these components, elements, modules or units may further includeor implemented by a processor such as a central processing unit (CPU)that performs the respective functions, a microprocessor, or the like.Two or more of these components, elements, modules or units may becombined into one single component, element, module or unit whichperforms all operations or functions of the combined two or morecomponents, elements, modules or units. Also, at least part of functionsof at least one of these components, elements, modules or units may beperformed by another of these components, elements, modules or units.Further, although a bus is not illustrated in the above block diagrams,communication between the components, elements, modules or units may beperformed through the bus. Functional aspects of the above exemplaryembodiments may be implemented in algorithms that execute on one or moreprocessors. Furthermore, the components, elements, modules or unitsrepresented by a block or processing steps may employ any number ofrelated art techniques for electronics configuration, signal processingand/or control, data processing and the like.

While the present invention has been particularly shown and describedwith reference to exemplary embodiments thereof, it will be understoodby those of ordinary skill in the art that various changes in form anddetails may be made therein without departing from the spirit and scopeof the inventive concept as defined by the following claims. It istherefore desired that the present embodiments be considered in allrespects as illustrative and not restrictive, reference being made tothe appended claims rather than the foregoing description to indicatethe scope of the invention.

What is claimed is:
 1. An apparatus for processing data, the apparatuscomprising: a buffer configured to store wireless packets; and at leastone processor configured to: select an event detection mode between apolling mode and an interrupt mode, based on a determination of whethera periodic time interval, at which the wireless packets are transmittedor received, is greater than or equal to a threshold value; and processdata included in the wireless packets by detecting an event in one ofthe polling mode and the interrupt mode according to the selected eventdetection mode, wherein the selecting the event detection modecomprises: based on the periodic time interval being greater than orequal to the threshold value, select the interrupt mode as the selectedevent detection mode, based on the periodic time interval being lessthan the threshold value, select the polling mode as the selected eventdetection mode.
 2. The apparatus of claim 1, wherein the determinationof whether the periodic time interval is greater than or equal to thethreshold value is determined by referring to period informationincluded in at least one of the wireless packets.
 3. The apparatus ofclaim 1, wherein the determination of whether the periodic time intervalis greater than or equal to the threshold value is determined bymeasuring time intervals of the wireless packets continuouslytransmitted or received.
 4. The apparatus of claim 1, wherein thedetermination of whether the periodic time interval is greater than orequal to the threshold value is determined based on whether sequencenumbers are included in payloads of the wireless packets.
 5. Theapparatus of claim 1, wherein the event is detected in the polling modein response to the periodic time interval being less than the thresholdvalue, and the event is detected in the interrupt mode in response tothe periodic time interval being greater than or equal to the thresholdvalue.
 6. The apparatus of claim 5, wherein the at least one processorswitches the event detection mode from the polling mode to the interruptmode in response to the periodic time interval being greater than orequal to the threshold value for at least a predetermined time duration.7. The apparatus of claim 1, wherein the at least one processor isfurther configured to process the data included in a wireless packetcorresponding to the detected event, among the wireless packets, andremove the data-processed wireless packet from the buffer.
 8. Theapparatus of claim 1, wherein the apparatus is incorporated into alow-power wireless communication apparatus.
 9. The apparatus of claim 8,wherein the low-power wireless communication apparatus is driven bybattery power.
 10. The apparatus of claim 8, wherein the low-powerwireless communication apparatus comprises at least one of a built-incamera and an apparatus for transmitting an image transferred from thebuilt-in camera.
 11. A method for processing data, the methodcomprising: storing wireless packets in a buffer; selecting an eventdetection mode between a polling mode and an interrupt mode, based on adetermination of whether a periodic time interval, at which wirelesspackets are transmitted or received, is greater than or equal to athreshold value; and processing data included in the wireless packets bydetecting an event in one of the polling mode and the interrupt modeaccording to the selected event detection mode, wherein the selectingthe event detection mode comprises: based on the periodic time intervalbeing greater than or equal to the threshold value, selecting theinterrupt mode as the selected event detection mode, based on theperiodic time interval being less than the threshold value, selectingthe polling mode as the selected event detection mode.
 12. The method ofclaim 11, wherein the determination of whether the periodic timeinterval is greater than or equal to the threshold value is determinedby referring to period information included in at least one of thewireless packets.
 13. The method of claim 11, wherein the determinationof whether the periodic time interval is greater than or equal to thethreshold value is determined by measuring time intervals of thewireless packets continuously transmitted or received.
 14. The method ofclaim 11, wherein the determination of whether the periodic timeinterval is greater than or equal to the threshold value is determinedbased on whether sequence numbers are included in payloads of thewireless packets.
 15. The method of claim 11, wherein the event isdetected in the polling mode in response to the periodic time intervalbeing less than the threshold value, and the event is detected in aninterrupt mode in response to the periodic time interval being greaterthan or equal to the threshold value.
 16. The method of claim 15,further comprising switching the event detection mode from the pollingmode to the interrupt mode in response to the periodic time intervalbeing greater than or equal to the threshold value for at least apredetermined time duration.
 17. The method of claim 11, wherein theprocessing the data comprises processing the data included in a wirelesspacket corresponding to the detected event, among the wireless packets,and removing the data-processed wireless packet from the buffer.
 18. Themethod of claim 11, wherein the processing the data is performed by alow-power wireless communication apparatus.
 19. The method of claim 18,wherein the low-power wireless communication apparatus is driven bybattery power.
 20. The method of claim 18, wherein the low-powerwireless communication apparatus comprises at least one of a built-incamera and an apparatus for transmitting an image transferred from thebuilt-in camera.